<?php
const discount = 0.8;
$pingge = '苹果';
$xiangjiao = '香蕉';
$juzi = '橘子';

$pgnumber = 1;
$xjnumber = 2;
$jznumber = 3;

$pingge_price = 6.89;
$xiangjiao_price = 7.99;
$juzi_price = 3.99;

$total = ($pgnumber * $pingge_price) + ($xjnumber * $xiangjiao_price) + ($jznumber * $juzi_price);
$total = $total * discount;
echo "
<html lang='en'>
<head>
    <title>第二个PHP程序</title>
</head>
<body>
<p>商品名称 | 购买数量（斤） | 商品价格（元/斤）</p>
<p>$pingge | $pgnumber | $pingge_price</p>
<p>$xiangjiao | $xjnumber | $xiangjiao_price</p>
<p>$juzi | $jznumber | $juzi_price</p>
<p>折扣：0.8 </p>
<p>总价：$total</p>

</body>
</html>";